<template>
	<view class="home">
		<!-- 首页轮播图 -->
		<HomeBanner :list="bannerList"></HomeBanner>
	</view>
</template>

<script setup>
	import { ref } from "vue"
  import { httpRequest } from "../../http/index.js"
	import { onLoad } from "@dcloudio/uni-app"
	
	let bannerList = ref([])
	
	onLoad(()=> {
		getBanner()
		console.log(bannerList.value)
	})
	let  getBanner = ()=> {
		httpRequest({
			url: "/home/multidata"
		}).then(res=> {
			// console.log(res.data.data.banner.list)
			bannerList.value = res.data.data.banner.list
		})
	}
	
	
</script>

<style lang="scss">
	
</style>
